/**
 * $Revision: 1.0 $
 * $Author: Eric Yang $
 * $Date: Aug 30, 2009 9:42:20 PM $
 *
 * Author: Eric Yang
 * Date  : Aug 30, 2009 9:42:20 PM
 *
 */
package com.gooex.web.action.manage.company;

import java.util.List;

import com.gooex.domain.company.Company;
import com.gooex.service.company.ICompanyManager;
import com.gooex.web.action.BaseManageableAction;


/**
 * @author Eric Yang
 * @version 1.0
 */
public class ManageCompanyViewAction extends BaseManageableAction {

	private ICompanyManager companyManager;

	private List<Company> companies;

	private String keyword;

	private boolean accredited = false;

	public String execute() throws Exception {
		companies = companyManager.getCompanies(page, accredited);
		return SUCCESS;
	}

	public List<Company> getCompanies() {
		return companies;
	}

	public void setCompanies(List<Company> companies) {
		this.companies = companies;
	}

	public void setCompanyManager(ICompanyManager companyManager) {
		this.companyManager = companyManager;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public boolean isAccredited() {
		return accredited;
	}

	public void setAccredited(boolean accredited) {
		this.accredited = accredited;
	}

}
